home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / atarierr.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  2KB  |  72 lines

  1. /*
  2. Copyright 1990,1991 Eric R. Smith. All rights reserved.
  3. */
  4.  
  5. #ifndef _atarierr_h
  6. #define _atarierr_h
  7.  
  8. #define    E_OK    0
  9.  
  10. /* BIOS errors */
  11.  
  12. #ifdef ERROR
  13. #undef ERROR
  14. #endif
  15.  
  16. #define ERROR    -1        /* generic error */
  17. #define EDRVNR    -2        /* drive not ready */
  18. #define EUNCMD    -3        /* unknown command */
  19. #define E_CRC    -4        /* crc error */
  20. #define EBADRQ    -5        /* bad request */
  21. #define E_SEEK    -6        /* seek error */
  22. #define EMEDIA    -7        /* unknown media */
  23. #define ESECNF    -8        /* sector not found */
  24. #define EPAPER    -9        /* out of paper */
  25. #define EWRITF    -10        /* write fault */
  26. #define EREADF    -11        /* read fault */
  27.  
  28. #define EWRPRO    -13        /* device write protected */
  29. #define E_CHNG    -14        /* media change detected */
  30. #define EUNDEV    -15        /* unknown device */
  31. #define EBADSF    -16        /* bad sectors on format */
  32. #define EOTHER    -17        /* insert other disk request */
  33.  
  34. /* GEMDOS errors */
  35.  
  36. #define EINVFN    -32        /* invalid function */
  37. #define EFILNF    -33        /* file not found */
  38. #define EPTHNF    -34        /* path not found */
  39. #define ENHNDL    -35        /* no more handles */
  40. #define EACCDN    -36        /* access denied */
  41. #define EIHNDL    -37        /* invalid handle */
  42. #define ENSMEM    -39        /* insufficient memory */
  43. #define EIMBA    -40        /* invalid memory block address */
  44. #define EDRIVE    -46        /* invalid drive specification */
  45. #define EXDEV    -48        /* cross device rename */
  46. #define ENMFIL    -49        /* no more files (from fsnext) */
  47. #define ELOCKED    -58        /* record is locked already */
  48. #define ENSLOCK    -59        /* invalid lock removal request */
  49. #define ERANGE    -64        /* range error */
  50. #define EINTRN    -65        /* internal error */
  51. #define EPLFMT    -66        /* invalid program load format */
  52. #define ENOEXEC EPLFMT
  53. #define EGSBF    -67        /* memory block growth failure */
  54.  
  55. #define ENAMETOOLONG ERANGE    /* a filename component is too long */
  56. #define ELOOP     -80        /* too many symbolic links */
  57. #define EPIPE    -81        /* write to a broken pipe */
  58.  
  59. /* this isn't really an error at all, just an indication to the kernel
  60.  * that a mount point may have been crossed
  61.  */
  62.  
  63. #define EMOUNT    -200
  64.  
  65. extern int mint_errno;
  66.  
  67. #ifndef error
  68. #define error(x)    ((long)x)
  69. #endif
  70.  
  71. #endif /* _atarierr_h */
  72.